package git.soulbgm.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;

/**
 * RSA配置
 *
 * @author SoulBGM
 * @date 2025-03-03
 */
@Configuration
@ConfigurationProperties(prefix = "rsa", ignoreUnknownFields = false)
public class RsaConfig {

    private Resource keystoreFile;

    private String keystorePassword;

    private String keyAlias;

    private String keyPassword;

    public Resource getKeystoreFile() {
        return keystoreFile;
    }

    public void setKeystoreFile(Resource keystoreFile) {
        this.keystoreFile = keystoreFile;
    }

    public String getKeystorePassword() {
        return keystorePassword;
    }

    public void setKeystorePassword(String keystorePassword) {
        this.keystorePassword = keystorePassword;
    }

    public String getKeyAlias() {
        return keyAlias;
    }

    public void setKeyAlias(String keyAlias) {
        this.keyAlias = keyAlias;
    }

    public String getKeyPassword() {
        return keyPassword;
    }

    public void setKeyPassword(String keyPassword) {
        this.keyPassword = keyPassword;
    }
}
